package com.luoxiang.socialandroid.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.luoxiang.socialandroid.R;
import com.luoxiang.socialandroid.app.MyAppliaction;
import com.luoxiang.socialandroid.base.BaseActivity;

public class SeepictureActivity extends BaseActivity {
    private ImageView img_seepicture;
    private ImageView icon_back;

    @Override
    protected void initLayout(Bundle savedInstanceState) {
        setContentView(R.layout.activity_seepicture);
        setStatusBarTranslucent();
    }

    @Override
    protected void initView() {
        img_seepicture = findViewById(R.id.img_seepicture);
        icon_back = findViewById(R.id.icon_back);
    }

    @Override
    protected void initListener() {
        Intent intent = getIntent();
        String seepicture = intent.getStringExtra("seepicture");
        Glide.with(MyAppliaction.getContext())
                .load(seepicture)
                .into(img_seepicture);
        icon_back.setOnClickListener(v -> {
            finish();
        });
    }
}